USAGE: rgb2gray inimg outimg type [-L]
rgb2gray accepts RGB color image input file, and produces
a grayscale file specified by type.
ARGUMENTS:
inimg: input image filename (TIF)
outimg: output image filename (TIF)
type: r|R produces RED plane
g|G
produces GREEN plane
b|B
produces BLUE plane
i|I
produces INTENSITY values
h|H
produces HUE values
s|S
produces SATURATION values
NOTE:
the HUE values are arbitrarily scaled from
0 to 200, where red=0, green=67, and blue=133.
The gray tvalue, i.e. red=green=blue,
is arbitrarily set to 255.
OPTIONS:
-L: print Software License
for this module
Example:
rgb2gray flower.tif flowerI.tif I
flower.tif:
flowerI.tif:
Copyright (C) 1999 MLMSoftware Group, LLC.